package io.github.luons.mediator.core.enums;

import io.github.luons.mediator.core.spi.result.ResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * connector
 *
 * @author : luons
 */
@Getter
@AllArgsConstructor
public enum Aggregations implements ResultCode {
    /**
     * 聚合类型
     */
    COUNT(0, "COUNT"),
    AVG(1, "AVG"),
    MAX(2, "MAX"),
    MIN(3, "MIN"),
    SUM(4, "SUM"),

    ;

    /**
     * code
     */
    private final Integer code;
    /**
     * message
     */
    private final String name;


}
